﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using CityLife.CityService;

namespace CityLife.GameLogic
{
    public class GameSteps
    {

        public static void SetStep(CityElement element, DateTime steptime, CityElementStage step)
        {

            
            CityStageLink stagelink = new CityStageLink();
            stagelink.ElementStage = step;
            stagelink.StageDate = steptime;
            stagelink.GridCol = element.GridColumn;
            stagelink.GridRow = element.GridRow;
            
            if (MainPage.Heart.City.CityStages == null)
                MainPage.Heart.City.CityStages = new System.Collections.Generic.List<CityStageLink>();

            MainPage.Heart.City.CityStages.Add(stagelink);

        }


    }
}
